package kevin.framework.basic.service;

import kevin.framework.basic.service.IBaseService;

import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONArray;

import kevin.framework.basic.common.tree.IListToTree;
import kevin.framework.basic.common.ui.ClientButton;
import kevin.framework.basic.domain.Menu;

/**
 * Generate by Kevin's CodeBuilder
 **/
public interface IMenuService extends IBaseService<Menu, String>, IListToTree<Menu> {

	public JSONArray getMenuJsonByPid(String pid, List<ClientButton> buttonlist) throws Exception;

	public JSONArray getMenuJsonByPid(String pid, List<ClientButton> buttonlist, Map<String, Object> params) throws Exception;

	public JSONArray getMenuJsonByPid(String pid) throws Exception;

	public JSONArray getMenuJsonByPid(String pid, Map<String, Object> params) throws Exception;
	
	public JSONArray getMenuJson(String pid, List<Menu> list) throws Exception ;

}
